package com.lemon.admin;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

@DisplayName("A special test case")
class DisplayNameDemo {

    @Autowired
    JdbcTemplate jdbcTemplate;
    @Test
    @DisplayName("Custom test name containing spaces")
    void testWithDisplayNameContainingSpaces() {
        System.out.println(jdbcTemplate);
    }

    @Test
    @DisplayName("╯°□°）╯")
    void testWithDisplayNameContainingSpecialCharacters() {
    }

    @Test
    @DisplayName("😱")
    void testWithDisplayNameContainingEmoji() {
        System.out.println(1);
    }
//    @RepeatedTest() // 重复测试
    @BeforeEach
    void testBeforeEach(){
        System.out.println("will begin");
    }
}
